package com.an.vhr.mapper;

import com.an.vhr.bean.Hr;
import com.an.vhr.bean.Role;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface HrMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(Hr record);

    int insertSelective(Hr record);

    Hr selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Hr record);

    int updateByPrimaryKey(Hr record);

    Hr loadUserByUsername(String username);

    List<Role> getRoleById(Integer id);

    List<Hr> getAllHrs(@Param("id")Integer id, @Param("keyWord") String keyWord);

    List<Hr> getAllHrsExceptCurrent(@Param("id")Integer id);

    Integer updateHrUserFace(@Param("upload")String upload, @Param("id")Integer id);
}